package com.google.code.pdfbrick.engine;

import java.io.File;
import java.io.IOException;

public class FileOperator {

	public final static void createFile(final String filePath)throws IOException{
		if(filePath!=null){
			File file=new File(filePath);
			if(file.isFile()){
				return;
			}
			file.createNewFile();
		}
	}
	
	public final static void deleteFile(final String filePath){
		if(filePath!=null){
			File file=new File(filePath);
			if(file.isFile()){
				file.delete();
			}
		}
	}
	
	public final static boolean isExistFile(final String filePath){
		boolean result=false;
		if(filePath!=null){			
			File file=new File(filePath);
			result=file.isFile();
		}		
		return result;
	}
}
